import request from '@/request'
const URL = process.env.VUE_APP_API

/**
 * 疾病知识图谱
 * @param {*} data
 * @returns
 */

//语音文件分类
export function getFollowupClassifyList(params) {
  return request({
    url: `${URL}/manage/followupClassify/list`,
    method: 'get',
    params
  })
}
//添加语音文件分类
export function addFollowupClassify(data) {
  return request({
    url: `${URL}/manage/followupClassify/add`,
    method: 'post',
    data
  })
}
//语音文件管理列表
export function getFollowupVoiveList(params) {
  return request({
    url: `${URL}/manage/followupVoice/list`,
    method: 'get',
    params
  })
}
// 批量导入语音
export function followupVoiceBatchAdd(data) {
  return request({
    url: `${URL}/manage/followupVoice/batchAdd`,
    method: 'post',
    data
  })
}
//添加语音
export function addFollowupVoive(data) {
  return request({
    url: `${URL}/manage/followupVoice/add`,
    method: 'post',
    data
  })
}
//修改语音
export function updateFollowupVoive(data) {
  return request({
    url: `${URL}/manage/followupVoice/update`,
    method: 'post',
    data
  })
}
//删除语音分类
export function deleteFollowupClassify(data) {
  return request({
    url: `${URL}/manage/followupClassify/delete/${data}`,
    method: 'get'
  })
}
export function deleteFollowupVoice(data) {
  return request({
    url: `${URL}/manage/followupVoice/delete/${data}`,
    method: 'get'
  })
}
